package ${dtoPackage};

<#list table.importPackages as pkg>
    <#if !(pkg?string?starts_with("com.baomidou") || pkg?string?starts_with("com.vv.tools.common.support.BaseModel"))>
        import ${pkg};
    </#if>
</#list>

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@Schema(name = "${entity}")
public class ${entity}DTO implements Serializable {

/**
* 主键ID
*/
@Schema(title = "ID")
private Long id;

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>

    <#if field.comment!?length gt 0>
        /**
        * ${field.comment}
        */
        @Schema(title = "${field.comment}")
    </#if>
    private ${field.propertyType} ${field.propertyName};
</#list>
<#------------  END 字段循环遍历  ---------->

}
